var MyClass = /** @class */ (function () {
    function MyClass(value) {
        this.value = value;
    }
    MyClass.prototype.do = function (input) {
        this.value = input;
        console.log('处理数据', this.value);
        return input;
    };
    return MyClass;
}());
var main = new MyClass({
    subject: '数学'
});
console.log(main);
main.do({
    subject: '英语'
});
var main1 = new MyClass('qqqqqqqqqqq');
console.log(main1);
main1.do('33333333'); // 此时传参类型只能是 object 因为上面在调用的同时就定义了
